lockdown: Print current->comm in restriction messages
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Feb 2018 14:43:03 +0000 (14:43 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 7 Dec 2019 12:24:06 +0000 (12:24 +0000)
commitfb78d1c1afe62baabcdd05023170a9de47bcb660
tree8e28036f78c97caaf9a790f8f7014fa132a9083a
parent638cd0d188eab22f4da2ea92c40e8d8d018cc9df
lockdown: Print current->comm in restriction messages

Print the content of current->comm in messages generated by lockdown to
indicate a restriction that was hit.  This makes it a bit easier to find
out what caused the message.

The message now patterned something like:

Lockdown: <comm>: <what> is restricted; see man kernel_lockdown.7

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0030-lockdown-Print-current-comm-in-restriction-messages.patch
security/lock_down.c